package com.mac.components {
	
	import flash.display.Sprite;
	import flash.text.TextField;
	
	
	public class HUD extends Sprite {
		
		public var logTxt:TextField
		
		public function HUD( w:*, h:* ):* {

			graphics.beginFill( 0x555555, 1 )
			graphics.drawRect(0, 0, w, h )
			graphics.endFill()
			
			logTxt = new TextField();
			logTxt.width = 200;
			
			addChild( logTxt )		
		}
		
		public function log( msg:String ):* {
			logTxt.htmlText = '<font color="#FFFFFF">' + msg + "</font>"
		}
	}
}